<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ServerConfig
 *
 * @author Royan
 */
class ServerConfig {
    //put your code here
    protected $__data;
    protected $__host;
    protected $__port;
    protected $__maxLink;
    protected $__areas;
    protected $__plugins;
    
    public function __construct( $data ) {
        $this->data = $data;
    }
    
    public function __get($param)
    {
        IF ( isset( $this->{'__'.$param} ) )
        {
            RETURN $this->{'__'.$param};
        }
        ELSE
        {
            $this->{'__'.$param} = $this->data->$param;
            RETURN $this->{'__'.$param};
        };
    }
    
    public function __toString() {
        RETURN "class serverconfig";
    }
}

?>
